//
//  BasicImageView.m
//  YQYHOUSE
//
//  Created by 倪勇勤 on 15/12/19.
//  Copyright © 2015年 niyonqin. All rights reserved.
//

#import "BasicImageView.h"
#define cellCornerRadius 5.0
@implementation BasicImageView

// 基类用于imageview的圆角设置
-(void)drawRect:(CGRect)rect
{
    [super drawRect:rect];

    [self setUpCornerImage];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    [self setUpCornerImage];
    
    return self;
}
-(void)awakeFromNib
{

    [self setUpCornerImage];
}

-(void)setUpCornerImage
{
    self.layer.cornerRadius = cellCornerRadius;
    self.layer.masksToBounds = YES;

}
@end
